home *** CD-ROM | disk | FTP | other *** search
- case $CONFIG in
- '') . config.sh ;;
- esac
- outputfile=pp.cf
- rm -f $outputfile.$$
- echo "Creating $outputfile (with variable substitutions)"
- if cat >$outputfile.$$ <<!GROK!THIS!
- # RCSid[] = "@(#)$Header: pp.SH,v 3.1 86/12/24 10:44:10 pb Rel $"
- #
- ##################################################
- ##################################################
- ##############
- ############## configure for pp
- ##############
- ##################################################
- ##################################################
-
- # the directory to search
- directory $datadir
-
- # enable tracing
- verbose 1
-
- # add comment header
- comment hdr.file
-
- # output format
- output pp
-
- context MAIL janet
- context MAIL pss
-
- domains
-
- filedmn pp.dmn -dmn-
- filedmn pp.chan -chan-
- !GROK!THIS!
- then
- : OK
- else
- echo " " Failed to create $outputfile.$$
- exit 1
- fi
- if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
- then
- rm -f $outputfile.$$
- echo " " $outputfile not affected
- elif mv $outputfile.$$ $outputfile
- then
- echo " " $outputfile updated
- else
- echo "+++ " $outputfile left in $outputfile.$$
- fi
-